#pragma once

#include "fm33le0xx_fl.h"

typedef void(*frame_recv_cb_t)(int cmd, const uint8_t* buf, int len);

void mcu_uart_init(frame_recv_cb_t recv_cb);

void mcu_uart_write(const uint8_t* buffer, uint32_t length);

void mcu_deal_rx_fifo_data();

void mcu_write_bytes(uint16_t cmd, const uint8_t* frame, uint32_t len);
